package com.itheima.thread.Demo5;

public class Demo5 {
    public static void main(String[] args) {
        SellTicket st = new SellTicket();
        Thread t1 = new Thread(st);
        t1.setName("一号窗口");
        Thread t2 = new Thread(st);
        t2.setName("二号窗口");
        Thread t3 = new Thread(st);
        t3.setName("三号窗口");

        t1.start();
        t2.start();
        t3.start();
    }
}
